package rainclass.shijuan2.car;

public class Car {
    Engine engine;
    Gearbox gearbox;


    public Engine getEngine() {
        return engine;
    }

    public void setEngine(Engine engine) {
        this.engine = engine;
    }

    public Gearbox getGearbox() {
        return gearbox;
    }

    public void setGearbox(Gearbox gearbox) {
        this.gearbox = gearbox;
    }

    public void show(){
        System.out.println("engine是"+engine.getPower()+"，gearbox是"+gearbox.getAmount());
    }
}
